package online.transaction.provider;

import javax.transaction.UserTransaction;

import online.transaction.UserTransactionProvider;

import org.seasar.extension.jta.UserTransactionImpl;

import common.db.jdbc.provider.S2DataSourceProvider;

/**
 * S2UserTransactionProvider
 * @author Tadashi Nakayama
 */
public final class S2UserTransactionProvider implements UserTransactionProvider {

	/**
	 * @see online.transaction.UserTransactionProvider#getUserTransaction()
	 */
	@Override
	public UserTransaction getUserTransaction() {
		return new UserTransactionImpl(S2DataSourceProvider.getTransactionManager());
	}
}
